package com.runa.monitor.platinterface.mqtt.vo;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class FourGMeterVO extends FourGVO {
    private String id;
    private String rsrp;
    private String ecl;
    private String snr;
    private String cellId;
    private String typ;
    private String sw;
    private String NB;
    private String csq;
    private String sp;
    private String rp;
    private String volt;
    private String IMEI;
    private String run;
    private String sysEvt;
    private String rtc;
    private String data;


    public static void main(String[] args) {
        String s = "rsrp:-96,ecl:0,snr:3,cellId:166853329,typ:1,sw:V3.0,NB:MB26,csq:13,sp:60,rp:1440,volt:3684,IMEI:868977067673137" +
                ",id:24700208,run:16823,sysEvt:00000020,rtc:20250313030414,data:202503130240483B681008027024004D22812E8F9000392121002C000000002C855420002C39800000350008008131009116000000005903474602130325200000E016202503130304103B681008027024004D22812E8F9000712121002C000000002C855420002C058000003510080082310092160000000059031010031303252000008A16";
        FourGMeterVO gene = FourGMeterVO.gene(s);
        System.out.println(JSON.toJSONString(gene));
    }

    @SneakyThrows
    public static FourGMeterVO gene(String json) {
        return generate(FourGMeterVO.class, json);
    }


}
